package com.orange.cetback.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

/**
 * <p>
 *
 * </p>
 *
 * @author chenenjun
 * @since 2025-02-16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Questions implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "question_id", type = IdType.AUTO)
    private Integer questionId;

    private Integer materialId;

    private String content;

    private BigDecimal baseScore;

    /**
     * 难度系数（1-5）
     */
    private Byte difficultyLevel;

    /**
     * 答案
     */
    private String answer;

    /**
     * 解析内容
     */
    private String analysis;

    @TableField(exist = false)
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<QuestionOptions> options;
}
